﻿#ifndef _CTHREAD_H_
#define _CTHREAD_H_

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _cthread_ {
	//attribute

	//action
	int(*run)(struct _cthread_*, void(*)(void *), void*);
} CThread;

int construct_thread(CThread* th);

#ifdef __cplusplus
}
#endif
#endif
